package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.service.settings.bean.server.QueryRecommendSwitchRes;

public class egr implements IServerCallBack {
    private b ॱ;

    public egr(b bVar) {
        this.ॱ = bVar;
    }

    public void ˊ() {
        this.ॱ = null;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        boolean z;
        int i = 1;
        int i2 = 0;
        if (responseBean instanceof QueryRecommendSwitchRes) {
            QueryRecommendSwitchRes queryRecommendSwitchRes = (QueryRecommendSwitchRes) responseBean;
            int responseCode = queryRecommendSwitchRes.getResponseCode();
            if (queryRecommendSwitchRes.getRtnCode_() == 0 && responseCode == 0) {
                boolean z2 = queryRecommendSwitchRes.ˏ() == 1;
                if (z2) {
                    if (queryRecommendSwitchRes.ˋ() != -1) {
                        i = queryRecommendSwitchRes.ˋ();
                    }
                    i2 = i;
                    z = z2;
                } else {
                    z = z2;
                }
                if (this.ॱ != null) {
                    this.ॱ.ˏ(i2, z);
                }
            }
        }
        z = false;
        if (this.ॱ != null) {
            this.ॱ.ˏ(i2, z);
        }
    }
}
